import { getRequest, postRequest } from '@/lib/axios';
import {
    ACTIVITYCHECKIN, ACTIVITYCHECKINHISTORY, ACTIVITYADD, ACTIVITYLIST, BANNER, MIXUERECORDS,
    ACTIVITYPDUOBAORODUCTS, ACTIVITYPRODUCTS, ACTIVITYRECORD, ACTIVITYCOPY, ACTIVITYLOTTERYRECORD
} from '@/config/api-constant/moby'

// h5活动列表
export const activityListApi = (param) => {
    return getRequest(ACTIVITYLIST, param)
}

// 增加h5活动
export const activityAddApi = (param) => {
    return postRequest(ACTIVITYADD, param)
}

// 签到用户
export const activityCheckinApi = (param) => {
    return postRequest(ACTIVITYCHECKIN, param)
}

//签到历史
export const checkinHistoryApi = (param) => {
    return postRequest(ACTIVITYCHECKINHISTORY, param)
}

// Banner管理
export const bannerListApi = (param) => {
    return getRequest(BANNER, param)
}

//新增、修改Banner
export const bannerOperateApi = (param) => {
    return postRequest(BANNER, param)
}

// 蜜雪冰城活动记录
export const mixueRecordsListApi = (param) => {
    return getRequest(MIXUERECORDS, param)
}

// 管理  编辑  记录
// activityDuobaoProductsApi, activityProductsApi,activityRecordApi
//夺宝商品管理
export const activityDuobaoProductsApi = (param) => {
    return getRequest (ACTIVITYPDUOBAORODUCTS, param)
}

// 新增、编辑夺宝商品
export const activityProductsApi = (param) => {
    return postRequest (ACTIVITYPRODUCTS,param)
}

// ACTIVITYPDUOBAORODUCTS,ACTIVITYPRODUCTS
// 夺宝参与记录
export  const activityRecordApi = (param) => {
    return postRequest (ACTIVITYRECORD,param)
}

export  const activityProductsBatchOperateApi = (param) => {
    return postRequest ('/mobybox/activity/duobao/products/batch', param)
}
// 转盘抽奖记录
export  const activityLotteryRecordApi = (param) => {
    return postRequest (ACTIVITYLOTTERYRECORD,param)
}

//夺宝任务
export  const duobaoJoinRecordApi = (param) => {
    return postRequest ('/mobybox/duobao/task/record', param)
}
export  const duobaoRewardsRecordApi = (param) => {
    return postRequest ('/mobybox/duobao/task/reward', param)
}
//圣诞充值抽奖
export  const christmasChargeApi = (param) => {
    return postRequest ('/mobybox/christmas/lottery_records', param)
}
//圣诞夺宝抽奖
export  const christmasDuobaoApi = (param) => {
    return postRequest ('/mobybox/christmas/duobao_lottery', param)
}
//圣诞宝箱抽奖
export  const christmasBoxApi = (param) => {
    return postRequest ('/mobybox/christmas/duobao_box', param)
}
//圣诞开奖
export  const christmasWinApi = (param) => {
    return postRequest ('/mobybox/christmas/win', param)
}
//圣诞商品
export  const christmasGoodsApi = (param) => {
    return getRequest ('/mobybox/christmas/goods', param)
}
export  const christmasGoodsUpdateApi = (param) => {
    return postRequest ('/mobybox/christmas/goods', param)
}
